package com.web.dao;

import com.web.VO.MyApplyVO;
import com.web.VO.MyPublishVO;
import com.web.VO.MyRecruitVO;
import com.web.entity.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JobMapper {
    void  insertjobHunting(JobHunting jobHunting);

    List<JobList> getJobList(@Param("longitude") String longitude,@Param("latitude") String latitude,@Param("min_salary") String min_salary,@Param("max_salary") String max_salary);

    List<UserEdu> getEducationList();

    void insertEnterpriseRecruitment(TechRecriitment techRecriitment);

    RecruitmentDetails getRecruitmentDetails(@Param("id") Integer id, @Param("userId") String userId);

    TemporaryWorkDetails getTemporaryWorkDetails(@Param("id")int id,@Param("userId")String userId);

    List<JobList> getJobListtwo(@Param("min_salary") String min_salary,@Param("max_salary") String max_salary);

    List<JobList> getTemporaryWorkers(@Param("min_salary") String min_salary,@Param("max_salary") String max_salary);

    List<JobList> TemporaryWorkersList(@Param("longitude") String longitude,@Param("latitude") String latitude,@Param("min_salary") String min_salary,@Param("max_salary") String max_salary);

    List<JobList> getEnterpriseRecruitmentList(@Param("longitude") String longitude,@Param("latitude") String latitude,@Param("min_salary") String min_salary,@Param("max_salary") String max_salary);

    List<JobList> getEnterpriseRecruitment(@Param("min_salary") String min_salary,@Param("max_salary") String max_salary);

    TemporaryWorkDetails getJobWantedDetails(@Param("id") Integer id, @Param("userId") String userId);

    int  updateRecruitment(InstantInfoRecruitment instantInfoRecruitment);

    void updateApplyForAJob(InstantInfotoApplyForAJob life);

    /**
     * 我发的的招聘
     * @param userId
     * @return
     */
    List<MyPublishVO> listMyPublishRecruit(String userId);

    /**
     * 我发布的求职
     * @param userId
     * @return
     */
    List<MyPublishVO> listMyPublishApply(String userId);

    TechRecriitment findMyTechRecriitment(@Param("userId") String userId,@Param("typeId") Integer typeId);

    void DeleteMyTechRecriitment(@Param("typeId")Integer typeId);

    void DeleteMyjobHunting(@Param("typeId")Integer typeId);

    JobHunting findMyjobHunting(@Param("userId") String userId,@Param("typeId") Integer typeId);
}
